import 'package:flutter/material.dart';
import 'package:mall_app/routes/Routes.dart';
import 'package:mall_app/util/color.dart';


//void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      initialRoute: '/',
      debugShowCheckedModeBanner: false,
      onGenerateRoute: onGenerateRoute,
      //配置应用主题
      theme: ThemeData(
        //应用主题颜色
        primarySwatch: createMaterialColor(Color(0xFFF5DEB3)),
      ),
    );
  }
}

void main() => runApp(MyApp());
